package com.huike.contract.mapper;

import com.huike.contract.domain.TbContract;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;



/**
* @author 93238
* @description 针对表【tb_contract(合同)】的数据库操作Mapper
* @createDate 2023-10-12 06:42:55
* @Entity com.huike.contract.domain.TbContract
*/
public interface TbContractMapper extends BaseMapper<TbContract> {

    /**
     * 查询合同内的折扣类型
     * @param type
     * @return
     */
    String selectDiscountTypeByType(Integer type,String dictType);

    /**
     * 查询合同内学科名称
     * @param subject
     * @return
     */
    String selectCourseSubjectBySubject(String subject);

    Double getSum(String starTime , String endTime);

}




